package com.eastelsoft.smartiot.bssserver;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
//启注解事务管理
@EnableTransactionManagement
@MapperScan("com.eastelsoft.smartiot.bssserver.dao")//SpringBootServletInitializer
public class BssserverApplication extends SpringBootServletInitializer{
	@Override
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
		return builder.sources(BssserverApplication.class);
	}

	public static void main(String[] args) {
		SpringApplication.run(BssserverApplication.class, args);
	}
}